package com.slunk.platforms;

/**
 * Enumeration class used to define keys to be used for Maps when assigning states to the state machine in SActingObject
 * @author Scott
 *
 */
public enum SOPCodes {
   OP_DESCRIPTION("DESCRIPTION"), OP_IMAGE("OP_IMAGE"), OP_POSITION_XY("OP_POSITION_XY"), OP_POSITION_X("OP_POSITION_X"), OP_POSITION_Y("OP_POSITION_Y"), OP_SCALE_XY("OP_SCALE"), OP_ROTATE("OP_ROTATE"),
   OP_SCALE_X("OP_SCALE_X"),OP_SCALE_Y("OP_SCALE_Y"), OP_ANIMATION("OP_ANIMATION"), OP_DELAY("OP_DELAY"), OP_SOUND("OP_SOUND"), OP_INSTANT("OP_INSTANT"), OP_SACTINGOBJECT("OP_SACTINGOBJECT"),
   OP_ONTAP("OP_ONTAP"), OP_NEXT_STATE("OP_NEXT_STATE"), OP_QUESTION("OP_QUESTION");
   private final String stringValue;
   private SOPCodes(final String s) { stringValue = s; }
   public String toString() { return stringValue; }
   public SOPCodes fromString(String opCodeString) {
	   for (SOPCodes sOpCode : SOPCodes.values()) {
		   if (sOpCode.toString().equals(opCodeString)) {
			   return sOpCode;
		   }
	   }
	   return null;
   }
}
